<!--/**
 * Created by IntelliJ IDEA.
 * User: Winnie
 * Date: 25/04/14
 * Time: 10:37
 */ -->
<?php
session_start();	//start session
if(!isset($_SESSION['username'])){	//check if the user data is in the session
    header("location: login.php");	//if not redirect back to user
}
?>
<html>
    <head>
        <title>HOME</title>
        <link rel="stylesheet" href="style.css">
        <script src="jquery-1.11.0.js"></script>
        <style type="text/css">
            #divContent{
                text-align: center;
                font-size: 20px;
                margin-top: 30px;
            }
        </style>
    </head>
    <body>
       <table id="contentTable">
            <tr>
                <td colspan="2" id="pageheader">
                    health information system
                </td>
            </tr>
            <tr>
                <td id="mainnav">
                    <div class="menuitem"><a href="Home.php">location</a></div>
                    <div class="menuitem">opd cases</div>
                    <div class="menuitem">health promotion</div>
                    <div class="menuitem">nutrition</div>
                    <div class="menuitem">child welfare</div>
                    <div class="menuitem">family planning</div>
                    <div class="menuitem"><a href="userslist.php">users</a></div>
                    <div class="menuitem"><a href="logout.php">logout<a></div>
                </td>
                <td id="content">
                    <div id="divPageMenu">
                        <span class="menuitem" >Community Health Officer</span> | 
                        <span class="menuitem" >Districts</span> | 
                        <span class="menuitem" ><a href="subdistrict_list.php">Sub districts</a></span> | 
                        <span class="menuitem" ><a href="community_lists.php">Communities<a/></span>
                        <input type="text" id="txtSearch">
                        <span class="menuitem" >search</span>        
                    </div>
                <hr align="center" size=1px width=50% >
                    <div id="divContent">
                        Welcome To the location section of the Health Information System
                    </div>
                </td>
            </tr>
        </table>
    </body>
</html>
